import cv2
from pandas import DataFrame

dog = cv2.imread('images/dog.jpg')
# cv2.imshow('dog', dog)

# cv2.waitKey(0)
# cv2.destroyAllWindows()

df = DataFrame(dog.reshape(-1, 3))
df.head()

diff = df.shape[0] - df.duplicated().sum()

print(diff)

